FROM node:16.15

ENV FC_CUSTOM_LISTEN_PORT=9000
WORKDIR /workspace
COPY . .
RUN npm install --production --registry=https://registry.npmmirror.com

EXPOSE $FC_CUSTOM_LISTEN_PORT
ENTRYPOINT [ "node", "index.js" ]